﻿@model IEnumerable<VMArticle>
@using RexelProductenPortal.ViewModels
@using MvcContrib.UI.Grid;

@Html.Grid(Model).Columns( column => {
    column.For( u => Html.ActionLink(u.ArticleNumberManufacturer, "Details", new { id = u.ArticleNumberManufacturer })).Named("Artikelnummer fabrikant");
    column.For( u => u.ArticleName).Named("Artikelnaam");
    column.For(u => u.Series).Named("Serie/Programma");
    } ).Attributes( @class => "table-list" ).Empty( "Geen artikelen gevonden!" )

<div id="Pagination">
    <table class="pagination">
    <tr>
    @for (int i = (int) ViewBag.minPage; i <= (int)ViewBag.maxPage;i++)
    {
    <td>
        @Html.ActionLink("Page " + i, "Index", new { page = i }, ViewBag.currentPage == i ? new { @class = "current" } : new { @class = "" })
    </td>
    }
    </tr>
    </table>
</div>




